package com.hethongviet.preventingmachine;

public final class Constants
{
	public static final int MAX_ID_LENGTH = 3;
	public static final int MAX_SENSORS = 10;
	public static final int MAX_RELAYS = 8;
	public static final int MAX_PHONE_ALARM = 10;
	public static final int MAX_PHONE_CONTROL = 10;
	
	public static final String PASSWORD_DEFAULT = "123456";
	//public static final String DEVICE_NUMBER_DEFAULT = "01638436653";
	public static final String DEVICE_NUMBER_DEFAULT = "0983497310";

	public static final int LENGTH_MIN_PASSWORD = 4;
	public static final int LENGTH_MAX_PASSWORD = 10;

	public static final int LENGTH_MIN_NAME = 1;
	public static final int LENGTH_MAX_NAME = 10;

	public static final int LENGTH_MIN_NUMBER = 1;
	public static final int LENGTH_MAX_NUMBER = 13;

	public static final int LENGTH_MIN_ADDRESS = 8;//http://
	public static final int LENGTH_MAX_ADDRESS = 130;
	
	public static final int TIME_OUT_SMS = 40000;
	public static final int TIME_DEBUG_SEND_SMS = 1000;

	public static final int TIME_ALLOW_SEND_SMS = 1000;
	
	/* Extra bundle */
	public static final String EXTRA_PASSWORD = "password";
	public static final String EXTRA_NAME = "name";
	public static final String EXTRA_NUMBER = "number";
	public static final String EXTRA_REQUEST = "request";
	public static final String EXTRA_SOUND_PATH = "sound_path";
	public static final String EXTRA_ADDRESS = "address";
	public static final String EXTRA_IDDB = "iddb";

	public static final String PREFERENCE_NUMBER = "pref_number";

	public final static int REQUEST_CHANGE_DEVICE_NAME = 10;
	public final static int REQUEST_CHANGE_NAME_SENSOR = REQUEST_CHANGE_DEVICE_NAME + 1;
	public final static int REQUEST_CHANGE_NAME_RELAY = REQUEST_CHANGE_NAME_SENSOR + 1;
	public final static int REQUEST_CHANGE_PASSWORD = REQUEST_CHANGE_NAME_RELAY + 1;
	public final static int REQUEST_CHANGE_DEVICE_PHONE_NUMBER = REQUEST_CHANGE_PASSWORD + 1;
	public final static int REQUEST_CHANGE_SOUND = REQUEST_CHANGE_DEVICE_PHONE_NUMBER + 1;
	public final static int REQUEST_CHANGE_CAMERA = REQUEST_CHANGE_SOUND + 1;
	
}
